package com.zkthink.ceres.store.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 会员和店铺关系表
 * </p>
 *
 * @author chenke
 * @since 2022-04-22
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ceres_store_member")
@ApiModel(value = "StoreMember", description = "会员和店铺关系表")
@AllArgsConstructor
public class StoreMember extends Entity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    @TableField("mid")
    @Excel(name = "会员ID")
    private Long mid;

    /**
     * 店铺ID
     */
    @ApiModelProperty(value = "店铺ID")
    @TableField("store_id")
    @Excel(name = "店铺ID")
    private Long storeId;

    @ApiModelProperty(value = "身份  2-商家用户 3-核销人员")
    @TableField("user_type")
    private Integer userType;
    @Builder
    public StoreMember(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser, Long mid, Long storeId, Integer userType) {
        super(id, createTime, createUser, updateTime, updateUser);
        this.mid = mid;
        this.storeId = storeId;
        this.userType = userType;
    }
}
